import request from '@/utils/request';

/**
 * 新增自定义列
 * @param data
 */
export const addColumn = (data: any) => {
    return request({
        url: '/system/column/add',
        method: 'post',
        data: data
    });
};
/**
 * 查询自定义列列表
 * @param data
 */
export const listColumn = (data: any) => {
    return request({
        url: '/system/column/list',
        method: 'post',
        data: data
    });
};
/**
 * 修改自定义列
 * @param data
 */
export const updateColumn = (data: any) => {
    return request({
        url: '/system/column/updateDefault',
        method: 'post',
        data: data
    });
};
/**
 * 删除自定义列
 * @param data
 */
export const removeColumn = (data: any) => {
    return request({
        url: '/system/column/remove',
        method: 'post',
        data: data
    });
};
/**
 * 查询自定义列
 * @param data
 */
export const getColumn = (data: any) => {
    return request({
        url: '/system/column/get',
        method: 'post',
        data: data
    });
};